#pragma once
#include <string>
#include <SDL.h>

using namespace std;

typedef void(*PtrFunc)(void);

class Button
{
public:
	wstring buttonName;
	int width;
	int height;
	int x;
	int y;
	bool isPressed;
	SDL_Texture* buttonTexture;
	SDL_Texture* buttonPressedTexture;
	PtrFunc function = NULL;

	Button(wstring buttonName, int x, int y, int width, int height, SDL_Texture* buttonTexture, SDL_Texture* buttonPressedTexture);
	void paint(SDL_Renderer* renderer);
	int bind(PtrFunc ptrfunc);
};